home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Toolbox / Visual Basic Toolbox (P.I.E.)(1996).ISO / pgm_ctrl / cuactrls / cslide.frm < prev    next >
Text File  |  1995-05-22  |  11KB  |  361 lines

  1. VERSION 2.00
  2. Begin Form frmSlider 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   3  'Fixed Double
  5.    Caption         =   "Slider Demo"
  6.    ClientHeight    =   3225
  7.    ClientLeft      =   945
  8.    ClientTop       =   1470
  9.    ClientWidth     =   5565
  10.    ClipControls    =   0   'False
  11.    Height          =   3630
  12.    Left            =   885
  13.    LinkTopic       =   "Form1"
  14.    ScaleHeight     =   3225
  15.    ScaleWidth      =   5565
  16.    Top             =   1125
  17.    Width           =   5685
  18.    Begin Data Data1 
  19.       Caption         =   "Data1"
  20.       Connect         =   ""
  21.       DatabaseName    =   "C:\BP\CUACTLS\CUACTLS.MDB"
  22.       Exclusive       =   0   'False
  23.       Height          =   270
  24.       Left            =   4020
  25.       Options         =   0
  26.       ReadOnly        =   0   'False
  27.       RecordSource    =   "Test"
  28.       Top             =   2835
  29.       Width           =   1155
  30.    End
  31.    Begin CUACommand cmdOK 
  32.       Caption         =   "OK"
  33.       Default         =   -1  'True
  34.       Height          =   345
  35.       Left            =   3885
  36.       StandardButton  =   1  'OK
  37.       TabIndex        =   1
  38.       Top             =   90
  39.       Width           =   1260
  40.    End
  41.    Begin CUAFrame grp3 
  42.       BackColor       =   &H00C0C0C0&
  43.       BorderStyle     =   6  'Bump
  44.       Caption         =   "&Volume"
  45.       Font3D          =   1  'Inset
  46.       Height          =   2655
  47.       Left            =   150
  48.       TabIndex        =   3
  49.       Top             =   525
  50.       Width           =   3600
  51.       Begin CUASpin spnVol 
  52.          Height          =   105
  53.          Left            =   3315
  54.          Max             =   59
  55.          Orientation     =   0  'Horizontal
  56.          TabIndex        =   5
  57.          Top             =   345
  58.          Width           =   180
  59.       End
  60.       Begin CUASpin spnEq 
  61.          Height          =   180
  62.          Index           =   4
  63.          Left            =   2940
  64.          Max             =   59
  65.          TabIndex        =   17
  66.          Top             =   2400
  67.          Width           =   105
  68.       End
  69.       Begin CUASpin spnEq 
  70.          Height          =   180
  71.          Index           =   3
  72.          Left            =   2310
  73.          Max             =   59
  74.          TabIndex        =   18
  75.          Top             =   2400
  76.          Width           =   105
  77.       End
  78.       Begin CUASpin spnEq 
  79.          Height          =   180
  80.          Index           =   2
  81.          Left            =   1665
  82.          Max             =   59
  83.          TabIndex        =   19
  84.          Top             =   2400
  85.          Width           =   105
  86.       End
  87.       Begin CUASpin spnEq 
  88.          Height          =   180
  89.          Index           =   1
  90.          Left            =   990
  91.          Max             =   59
  92.          TabIndex        =   20
  93.          Top             =   2400
  94.          Width           =   105
  95.       End
  96.       Begin CUASpin spnEq 
  97.          Height          =   180
  98.          Index           =   0
  99.          Left            =   315
  100.          Max             =   59
  101.          TabIndex        =   21
  102.          Top             =   2400
  103.          Width           =   105
  104.       End
  105.       Begin CUASlide sldEq 
  106.          BackColor       =   &H00C0C0C0&
  107.          DataField       =   "Tal5"
  108.          DataSource      =   "Data1"
  109.          ForeColor       =   &H00FFFFFF&
  110.          Height          =   1200
  111.          Index           =   4
  112.          Left            =   2850
  113.          Orientation     =   1  'Vertical
  114.          TabIndex        =   10
  115.          Top             =   1200
  116.          Value           =   8
  117.          Width           =   465
  118.       End
  119.       Begin CUASlide sldEq 
  120.          BackColor       =   &H00C0C0C0&
  121.          DataField       =   "Tal1"
  122.          DataSource      =   "Data1"
  123.          ForeColor       =   &H00000000&
  124.          Height          =   1200
  125.          Index           =   0
  126.          Left            =   225
  127.          Orientation     =   1  'Vertical
  128.          TabIndex        =   6
  129.          Top             =   1200
  130.          Value           =   7
  131.          Width           =   450
  132.       End
  133.       Begin CUASlide sldEq 
  134.          BackColor       =   &H00C0C0C0&
  135.          DataField       =   "Tal2"
  136.          DataSource      =   "Data1"
  137.          ForeColor       =   &H00800000&
  138.          Height          =   1200
  139.          Index           =   1
  140.          Left            =   900
  141.          Orientation     =   1  'Vertical
  142.          TabIndex        =   7
  143.          Top             =   1200
  144.          Value           =   8
  145.          Width           =   450
  146.       End
  147.       Begin CUASlide sldEq 
  148.          BackColor       =   &H00C0C0C0&
  149.          DataField       =   "Tal3"
  150.          DataSource      =   "Data1"
  151.          ForeColor       =   &H00808000&
  152.          Height          =   1200
  153.          Index           =   2
  154.          Left            =   1575
  155.          Orientation     =   1  'Vertical
  156.          TabIndex        =   8
  157.          Top             =   1200
  158.          Width           =   450
  159.       End
  160.       Begin CUASlide sldEq 
  161.          BackColor       =   &H00C0C0C0&
  162.          DataField       =   "Tal4"
  163.          DataSource      =   "Data1"
  164.          ForeColor       =   &H0080FFFF&
  165.          Height          =   1200
  166.          Index           =   3
  167.          Left            =   2220
  168.          Orientation     =   1  'Vertical
  169.          TabIndex        =   9
  170.          Top             =   1200
  171.          Value           =   6
  172.          Width           =   450
  173.       End
  174.       Begin CUASlide sldVol 
  175.          BackColor       =   &H00C0C0C0&
  176.          FontBold        =   0   'False
  177.          FontItalic      =   0   'False
  178.          FontName        =   "MS Sans Serif"
  179.          FontSize        =   8.25
  180.          FontStrikethru  =   0   'False
  181.          FontUnderline   =   0   'False
  182.          ForeColor       =   &H000000FF&
  183.          Height          =   660
  184.          Left            =   180
  185.          ScaleStep       =   2
  186.          TabIndex        =   4
  187.          Top             =   255
  188.          Value           =   2
  189.          Width           =   3135
  190.       End
  191.       Begin CUALabel lbl1 
  192.          Caption         =   "15000"
  193.          Font3D          =   1  'Inset
  194.          FontBold        =   0   'False
  195.          FontItalic      =   0   'False
  196.          FontName        =   "MS Sans Serif"
  197.          FontSize        =   8.25
  198.          FontStrikethru  =   0   'False
  199.          FontUnderline   =   0   'False
  200.          Height          =   195
  201.          Index           =   4
  202.          Left            =   2790
  203.          TabIndex        =   16
  204.          Top             =   975
  205.          Width           =   540
  206.       End
  207.       Begin CUALabel lbl1 
  208.          Caption         =   "50"
  209.          Font3D          =   1  'Inset
  210.          FontBold        =   0   'False
  211.          FontItalic      =   0   'False
  212.          FontName        =   "MS Sans Serif"
  213.          FontSize        =   8.25
  214.          FontStrikethru  =   0   'False
  215.          FontUnderline   =   0   'False
  216.          Height          =   195
  217.          Index           =   3
  218.          Left            =   270
  219.          TabIndex        =   15
  220.          Top             =   975
  221.          Width           =   225
  222.       End
  223.       Begin CUALabel lbl1 
  224.          Caption         =   "1000"
  225.          Font3D          =   1  'Inset
  226.          FontBold        =   0   'False
  227.          FontItalic      =   0   'False
  228.          FontName        =   "MS Sans Serif"
  229.          FontSize        =   8.25
  230.          FontStrikethru  =   0   'False
  231.          FontUnderline   =   0   'False
  232.          Height          =   195
  233.          Index           =   2
  234.          Left            =   1515
  235.          TabIndex        =   12
  236.          Top             =   975
  237.          Width           =   435
  238.       End
  239.       Begin CUALabel lbl1 
  240.          Caption         =   "400"
  241.          Font3D          =   1  'Inset
  242.          FontBold        =   0   'False
  243.          FontItalic      =   0   'False
  244.          FontName        =   "MS Sans Serif"
  245.          FontSize        =   8.25
  246.          FontStrikethru  =   0   'False
  247.          FontUnderline   =   0   'False
  248.          Height          =   195
  249.          Index           =   0
  250.          Left            =   885
  251.          TabIndex        =   14
  252.          Top             =   975
  253.          Width           =   330
  254.       End
  255.       Begin CUALabel lbl1 
  256.          Caption         =   "5000"
  257.          Font3D          =   1  'Inset
  258.          FontBold        =   0   'False
  259.          FontItalic      =   0   'False
  260.          FontName        =   "MS Sans Serif"
  261.          FontSize        =   8.25
  262.          FontStrikethru  =   0   'False
  263.          FontUnderline   =   0   'False
  264.          Height          =   195
  265.          Index           =   1
  266.          Left            =   2160
  267.          TabIndex        =   13
  268.          Top             =   975
  269.          Width           =   435
  270.       End
  271.       Begin CUALabel lblVol 
  272.          Alignment       =   2  'Center
  273.          BackColor       =   &H00FFFFFF&
  274.          Caption         =   "2"
  275.          FontBold        =   0   'False
  276.          FontItalic      =   0   'False
  277.          FontName        =   "MS Sans Serif"
  278.          FontSize        =   8.25
  279.          FontStrikethru  =   0   'False
  280.          FontUnderline   =   0   'False
  281.          ForeColor       =   &H00000000&
  282.          Height          =   195
  283.          Left            =   3315
  284.          TabIndex        =   11
  285.          Top             =   135
  286.          Width           =   225
  287.       End
  288.    End
  289.    Begin CUALabel lbl2 
  290.       Caption         =   "Sometimes you see scroll bars inaccurately used as a poor man's slider. Scroll bars should only be used for - yes - scrolling."
  291.       FontBold        =   0   'False
  292.       FontItalic      =   0   'False
  293.       FontName        =   "MS Sans Serif"
  294.       FontSize        =   8.25
  295.       FontStrikethru  =   0   'False
  296.       FontUnderline   =   0   'False
  297.       ForeColor       =   &H00FFFFFF&
  298.       Height          =   1935
  299.       Left            =   3885
  300.       TabIndex        =   2
  301.       Top             =   630
  302.       Width           =   1425
  303.    End
  304.    Begin CUALabel lbl 
  305.       Caption         =   "CUASlider is a slider that works the same way as it's real life correspondence."
  306.       FontBold        =   0   'False
  307.       FontItalic      =   0   'False
  308.       FontName        =   "MS Sans Serif"
  309.       FontSize        =   8.25
  310.       FontStrikethru  =   0   'False
  311.       FontUnderline   =   0   'False
  312.       ForeColor       =   &H00000080&
  313.       Height          =   435
  314.       Index           =   6
  315.       Left            =   150
  316.       TabIndex        =   0
  317.       Top             =   90
  318.       Width           =   3540
  319.    End
  320. End
  321. Option Explicit
  322.  
  323. Sub cmdOK_Click ()
  324.    Unload Me
  325. End Sub
  326.  
  327. Sub Data1_Error (DataErr As Integer, Response As Integer)
  328.    Response = 0
  329. End Sub
  330.  
  331. Sub Form_Load ()
  332.    Dim i%
  333.  
  334.    Data1.DatabaseName = DatabaseName
  335.  
  336.    spnVol.Max = sldVol.Max
  337.    spnVol = sldVol
  338.    For i = 0 To 4
  339.       spnEq(i).Max = sldEq(i).Max
  340.       spnEq(i) = sldEq(i)
  341.    Next
  342. End Sub
  343.  
  344. Sub sldEq_Change (Index As Integer)
  345.    spnEq(Index) = sldEq(Index)
  346. End Sub
  347.  
  348. Sub sldVol_Change ()
  349.    spnVol = sldVol
  350.    lblVol = sldVol
  351. End Sub
  352.  
  353. Sub spnEq_Change (Index As Integer)
  354.    sldEq(Index) = spnEq(Index)
  355. End Sub
  356.  
  357. Sub spnVol_Change ()
  358.    sldVol = spnVol
  359. End Sub
  360.  
  361.